using System.Collections;
using System.Collections.Generic;
using UnityEditor.SearchService;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.SceneManagement;
using UnityEngine.UI;

public class StartPanel : BasePanel
{
    void Start()
    {
        //PrintControlsDic();
    }
    protected override void OnClick(string btnName)
    {
        switch (btnName)
        {
            case "StartBtn":
                SceneManager.LoadScene("Map");
                break;
            case "EndBtn":
               Application.Quit();
                break;
            case "AboutBtn":
                //UIManager.GetInstance().ShowPanel<AboutPanel>("AboutPanel");
                UIManager.GetInstance().HidePanel("StartPanel");
                break;
            case "SettingBtn":
                UIManager.GetInstance().ShowPanel<SettingPanel>("SettingPanel");
                UIManager.GetInstance().HidePanel("StartPanel");
                break;
            default:
                break;
        }
    }
    protected override void OnValueChanged(string toggleName, bool value)
    {
        switch (toggleName)
        {
            case "Toggle":
                value = false;
                break;
            default:
                break;
        }
    }
    public override void ShowMe()
    {
        base.ShowMe();

    }
    private void Update()
    {
       
    }
}
